package com.huha.tools;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

public class HUHAToolsApplication extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        // 获取fxml
        Pane root = FXMLLoader.load(getClass().getResource("/HUHATools_View.fxml"));
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.setTitle("HUHATools  Just do it.");
        // UTILITY保留关闭按钮，UNDECORATED取消所有按钮，DECORATED禁用最大化按钮
        primaryStage.initStyle(StageStyle.DECORATED);
        // 禁用缩放
        primaryStage.setResizable(false);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch();
    }

}